package com.csf.create.builder;

/**
 * 建造者模式:
 * 该模式的思想就是将一个对象作为原型，对其进行复制、克隆，产生一个和原对象类似的新对象
 * Date: 2018/9/6
 * Time: 14:37
 *
 * @author chenshf
 */
public class Test {

    public static void main(String[] args) {
        Message.Builder builder = Message.builder();
        builder.buildContent("嘻嘻");
        builder.buildName("chenshf");
        builder.buildTitle("泡汤");

        Message build = builder.build();
        System.out.println(build.toString());
    }
}
